package cn.liberals.basic.constant;

public class BaseConstants {

    public class SmsConstant {

        /**
        * @Description: 通信通用常量
        * @Author: liberals
        * @Version: 1.0
        * @Date:  2022/7/7 1:15
        */
        // 用户名
        public static final String UID = "liberals";

        // 短信密钥
        public  static  final String KEY = "311E9A464E769B2296BF6CF728B6DC91";
    }
    
    /**
    * @Description: 验证code的常量
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/7/6 15:39
    */
    public class verifyCodeConstant{

        // 注册时的手机验证码常量
        public static final String BUSINESS_REGISTER_KEY = "register:";
        public static final String BUSINESS_BINDER_KEY = "binder:";

        // 登录时的手机验证码常量 BUSINESS_BINDER_KEY
        public static final String BUSINESS_LOGIN_KEY = "login:";
    }

    public class WechatConstant{

        // 微信开放平台的appId的值
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信开放平台SECRET的值
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

        // 微信开放平台SECRET的值
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }
}
